package com.bdqn.t320.pojo;

public class User {

    private Integer id;

    public String userName;

    private Integer age;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public User(Integer id, String userName, Integer age) {
        this.id = id;
        this.userName = userName;
        this.age = age;
    }

    private User(Integer id) {
        System.out.println("一个参数的构造方法");
        this.id = id;
    }

    public User() {
        System.out.println("无参构造方法");
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", age=" + age +
                '}';
    }

    public String show(String str) {
        System.out.println("show");
        return "hello:" + str;
    }

    public String show2(String str,Integer age) {
        System.out.println("show2");
        return "hello:" + str;
    }
}
